Hierarchical scale unit values for storing instances of data among nodes of a distributed store

ABSTRACT

Techniques are described herein for storing instances of data among nodes of a distributed store based on hierarchical scale unit values. Hierarchical scale unit values are assigned to the respective nodes of the distributed store. A first instance (e.g., a primary instance) of a data module is stored in a first node having a first hierarchical scale unit value. A primary instance of the data module with respect to a data operation is an instance of the data module at which the data operation with respect to the data module is initiated or initially directed. A second instance (e.g., a primary or secondary instance) of the data module is stored in a second node having a second hierarchical scale unit value based on a magnitude of a difference between the first hierarchical scale unit value and the second hierarchical scale unit value. A secondary instance is essentially a “back-up” instance.

BACKGROUND

A distributed store is a storage system in which data is stored onmultiple machines (e.g., computers or other processing systems). Themultiple machines may include multiple respective nodes among whichmultiple instances of data may be stored to provide “high availability”of the data. For example, a distributed store may be a distributedcache, a distributed database (e.g., a distributed SQL database), orother suitable type of distributed storage system.

Data operations with respect to data in a distributed store are usuallyinitiated at or initially directed to one instance of the data, which isreferred to as the primary instance of the data. Examples of dataoperations include but are not limited to a read operation, a writeoperation, an eviction operation, a notification operation, etc. Forexample, an instance of data to which a read (or write) operation isinitially directed with respect to the data is the primary instance ofthe data with respect to that read (or write) operation. In anotherexample, an instance of data at which an eviction (or notification)operation is initiated with respect to the data is the primary instanceof the data with respect to that eviction (or notification) operation.Instances of data with respect to a data operation that are not primaryinstances with respect to the data operation are referred to assecondary instances with respect to the data operation. Placement of thevarious instances of data among the nodes of the distributed store cansometimes result in the primary instance of the data and one or more ofthe secondary instances of the data being included in the same “scaleunit” (a.k.a. unit of failure).

A scale unit is an entity in an information technology (IT)infrastructure with respect to which data failures may be determined,upgrades may be performed, latency issues may be addressed, etc. A datafailure may be a loss of an instance of data, an inability to access aninstance of data, etc. For example, a scale unit traditionally isdefined at a machine, pod, or rack boundary by an administrator whomanages the infrastructure. A pod is a physical structure on whichmachines may be stored. A rack is a grouping of pods within a datacenter, for example. Accordingly, nodes that are included in the samescale unit traditionally are assigned a common scale unit value. Scaleunits may be defined (and respective values may be assigned) using aconfiguration file, an automated process, or other suitable technique.Conventional techniques for assigning scale unit values are relativelyinflexible, and conventional data storing techniques may providerelatively little protection against loss of access to data even whenmultiple instances of the data are included in the distributed store.For example, if all instances of the data are included in a singleentity within the IT infrastructure, a data failure with respect to thatentity may result in loss of access to the data.

SUMMARY

Various approaches are described herein for, among other things, storinginstances of data among nodes of a distributed store based onhierarchical scale unit values. The nodes of the distributed store arehosted by machines (e.g., computers or other processing systems). Eachnode includes data module(s) of the distributed store. A data module isa respective portion (e.g., partition(s) or other suitable portion) ofthe distributed store or a replica of the distributed store. It shouldbe noted that any portion of the distributed store may be replicatedacross multiple nodes. For example, a first instance of a portion may beincluded in a first node, a second instance of the portion may beincluded in a second node, and so on. Moreover, a node may includemultiple instances of the same portion of the distributed store. A“replica of the distributed store”, however, refers to an instance ofall data stored in the distributed store. The distributed store may beimplemented in a networked environment or in absence of a network. Forinstance, the distributed store may be implemented in a cloud of a cloudcomputing environment.

A hierarchical scale unit is an entity (e.g., a node, a virtual machine,a machine, etc.) in a hierarchical information technology (IT)infrastructure that stores a distributed store. The hierarchical ITinfrastructure includes a plurality of levels and may have any suitableconfiguration. In one example configuration, nodes of the distributedstore are hosted on respective virtual machines, which are executed onrespective machines. The nodes of the distributed store may correspondto a first level of the hierarchical IT infrastructure, the virtualmachines may correspond to a second level of the infrastructure, and themachines may correspond to a third level of the infrastructure. Themachines can be located on respective pods, which may correspond to afourth level of the infrastructure. The pods can be grouped intorespective racks, which may correspond to a fifth level of theinfrastructure. The racks can be grouped into respective data centers,which may correspond to a sixth level of the infrastructure, and so on.The example hierarchical IT infrastructure levels described herein areprovided for illustrative purposes and are not intended to be limiting.For instance, the hierarchical IT infrastructure may not include one ormore of the example levels discussed herein. Moreover, the hierarchicalIT infrastructure may include level(s) in addition to or in lieu of oneor more of the example levels discussed herein.

A hierarchical scale unit value is a value (e.g., number, characterstring, etc.) that is assigned to a hierarchical scale unit of thehierarchical IT infrastructure. The hierarchical scale unit value thatis assigned to a hierarchical scale unit corresponds to thathierarchical scale unit and each of the hierarchical scale units inother respective levels of the hierarchical IT infrastructure thatinclude that hierarchical scale unit. For example, a hierarchical scaleunit that is assigned to a node may correspond to that node, a machineon which the node is stored, a data center that includes the machine,etc. Such hierarchical scale unit values may be used to store instancesof data among hierarchical scale units of the distributed store based ona magnitude of a difference between respective hierarchical scale unitvalues.

A data manager is at least one computer or other processing system(s),including one or more processors, which distributes instances of datamodules of a distributed store among nodes. In a replication scenario,multiple instances of data modules may be stored in different nodes for“high availability” of those data modules. The data manager alsodetermines which instances of data modules are to be primary instancesof the data modules with respect to data operations and which are to besecondary instances of the data modules with respect to the dataoperations.

A primary instance of a data module with respect to a data operation isan instance of the data module at which the data operation with respectto the data module is initially directed or at which the data operationwith respect to the data module is initiated. Examples of dataoperations include but are not limited to a read operation, a writeoperation, an eviction operation, a notification operation, etc. Forexample, an instance of a data module to which a read (or write)operation is initially directed with respect to the data module is theprimary instance of the data module with respect to that read (or write)operation. In another example, an instance of a data module at which aneviction (or notification) operation is initiated with respect to thedata module is the primary instance of the data module with respect tothat eviction (or notification) operation. Secondary instances of datamodules with respect to data operations are essentially “back-up”instances of the data modules with respect to the data operations. Itshould be noted that the data manager may store multiple primaryinstances of a data module among the nodes. For instance, storingmultiple instances of the data module may enable or facilitate scalingof the data operations with respect to the data module.

The data manager may be capable of assigning hierarchical scale unitvalues to respective hierarchical scale units (e.g., nodes, virtualmachines, machines, etc.) of the distributed store. The data manager maybe configured to determine in which nodes of the distributed store tostore instances of a data module based on the hierarchical scale unitvalues that are assigned to the respective nodes. For instance, the datamanager may store the instances of the data module based on a magnitudeof a difference between the hierarchical scale unit values assigned tothe respective nodes.

In an example implementation, the data manager stores a primary instanceof a data module with respect to a data operation in a first node havinga first hierarchical scale unit value. The data manager stores a secondinstance (e.g., another primary instance or a secondary instance) of thedata module with respect to the data operation in a second node having asecond hierarchical scale unit value based on a magnitude of adifference between the first and second hierarchical scale unit values.The data manager may store other instances of the data module withrespect to the data operation in other nodes having respectivehierarchical scale unit values based on a magnitude of a differencebetween those respective hierarchical scale unit values and hierarchicalscale unit value(s) of at least one of the nodes in which an instance ofthe data module has been stored.

The data manager may be capable of storing a primary instance andsecondary instance(s) of a data module with respect to a data operationsuch that the primary instance is not stored in the same node as anysecondary instance. The data manager may be capable of storing secondaryinstances of a data module across multiple hierarchical scale unitboundaries, which may result in a relatively lower probability that thedata module will become inaccessible in the event of a data failure. Forinstance, a data failure with respect to an entity in the hierarchicalIT infrastructure may be less likely to render all instances of a datamodule inaccessible if the instances of the data module are stored inaccordance with technique(s) described herein. In an exampleimplementation, the hierarchical scale units may be geographicallydiverse, such that storing the secondary instances of the data moduleacross hierarchical scale unit boundaries effectively stores thesecondary instances across geographic boundaries.

An example method is described in which hierarchical scale unit valuesare assigned to respective nodes of a distributed store. A primaryinstance of a data module with respect to a data operation is stored ina first node having a first hierarchical scale unit value. A secondinstance of the data module with respect to the data operation is storedin a second node having a second hierarchical scale unit value based ona magnitude of a difference between the first hierarchical scale unitvalue and the second hierarchical scale unit value.

Another example method is described in which hierarchical scale unitvalues are assigned to respective nodes of a distributed store. Aprimary instance of a data module with respect to a data operation isstored in a first node having a first hierarchical scale unit value. Adetermination is made that a magnitude of a difference between the firsthierarchical scale unit value and a second hierarchical scale unit valueof a second node exceeds a magnitude of a difference between the firsthierarchical scale unit value and a hierarchical scale unit value of anyof the other nodes. A determination is made whether a load of the secondnode exceeds a threshold. If the load of the second node does not exceedthe threshold, a second instance of the data module with respect to thedata operation is stored in the second node. Otherwise, the secondinstance of the data module with respect to the data operation is storedin a third node having a third hierarchical scale unit value based on amagnitude of a difference between the first hierarchical scale unitvalue and the third hierarchical scale unit value.

An example data manager is described that includes an assigning moduleand a storing module. The assigning module is configured to assignhierarchical scale unit values to respective nodes of a distributedstore. The storing module is configured to store a primary instance of adata module with respect to a data operation in a first node having afirst hierarchical scale unit value. The storing module is furtherconfigured to store a second instance of the data module with respect tothe data operation in a second node having a second hierarchical scaleunit value based on a magnitude of a difference between the firsthierarchical scale unit value and the second hierarchical scale unitvalue.

A computer program product is also described. The computer programproduct includes a computer-readable medium having computer programlogic recorded thereon for enabling a processor-based system to storeinstances of a data module among nodes of a distributed store. Thecomputer program product includes first, second, and third program logicmodules. The first program logic module is for enabling theprocessor-based system to assign hierarchical weighted scale unit valuesto respective nodes of the distributed store. The second program logicmodule is for enabling the processor-based system to store a primaryinstance of the data module with respect to a data operation in a firstnode having a first hierarchical weighted scale unit value. The thirdprogram logic module is for enabling the processor-based system to storea second instance of the data module with respect to the data operationin a second node having a second hierarchical weighted scale unit valuebased on a magnitude of a difference between the first hierarchicalweighted scale unit value and the second hierarchical weighted scaleunit value.

This Summary is provided to introduce a selection of concepts in asimplified form that are further described below in the DetailedDescription. This Summary is not intended to identify key features oressential features of the claimed subject matter, nor is it intended tobe used to limit the scope of the claimed subject matter. Moreover, itis noted that the invention is not limited to the specific embodimentsdescribed in the Detailed Description and/or other sections of thisdocument. Such embodiments are presented herein for illustrativepurposes only. Additional embodiments will be apparent to personsskilled in the relevant art(s) based on the teachings contained herein.

BRIEF DESCRIPTION OF THE DRAWINGS/FIGURES

The accompanying drawings, which are incorporated herein and form partof the specification, illustrate embodiments of the present inventionand, together with the description, further serve to explain theprinciples involved and to enable a person skilled in the relevantart(s) to make and use the disclosed technologies.

FIG. 1 is an example logical representation of a distributed cache.

FIG. 2 is a block diagram of an example routing protocol used to routerequests and responses of Put and Get operations in a partitioneddistributed cache having primary data partitions with respect to a dataoperation.

FIG. 3 is a block diagram of an example routing protocol used to routerequests and responses of Put and Get operations in a partitioneddistributed cache having primary and secondary data partitions withrespect to a data operation.

FIG. 4 is a block diagram of an example routing protocol used to routerequests and responses of Put and Get operations in a replicateddistributed cache.

FIG. 5 is a block diagram of an example routing protocol used to routerequests and responses of Put and Get operations using local caches.

FIG. 6 is a block diagram of an example hierarchical informationtechnology (IT) infrastructure in which a distributed store may bestored in accordance with an embodiment.

FIG. 7 is a block diagram of an example computer system that utilizes adistributed store in accordance with an embodiment.

FIGS. 8A-8C depict respective portions of a flowchart of a method forstoring instances of a data module among nodes of a distributed storebased on hierarchical scale unit values in accordance with anembodiment.

FIG. 9 is a block diagram of an example implementation of a data managershown in FIG. 7 in accordance with an embodiment.

FIG. 10 depicts a flowchart of another method for storing instances of adata module among nodes of a distributed store based on hierarchicalscale unit values in accordance with an embodiment.

FIG. 11 is a block diagram of another example implementation of a datamanager shown in FIG. 7 in accordance with an embodiment.

FIG. 12 depicts an example computer in which embodiments may beimplemented.

The features and advantages of the disclosed technologies will becomemore apparent from the detailed description set forth below when takenin conjunction with the drawings, in which like reference charactersidentify corresponding elements throughout. In the drawings, likereference numbers generally indicate identical, functionally similar,and/or structurally similar elements. The drawing in which an elementfirst appears is indicated by the leftmost digit(s) in the correspondingreference number.

DETAILED DESCRIPTION

The detailed description begins with an introductory section tointroduce some of the concepts that will be discussed in further detailin subsequent sections. An example implementation of a distributed cacheis described in the next section to provide an example context in whichexample embodiments may be implemented. Example embodiments for storinginstances of data among nodes of a distributed store based onhierarchical scale unit values are then discussed, followed by aconclusion section.

I. INTRODUCTION

The following detailed description refers to the accompanying drawingsthat illustrate exemplary embodiments of the present invention. However,the scope of the present invention is not limited to these embodiments,but is instead defined by the appended claims. Thus, embodiments beyondthose shown in the accompanying drawings, such as modified versions ofthe illustrated embodiments, may nevertheless be encompassed by thepresent invention. For example, FIGS. 1-5 discuss an exampleimplementation of a distributed cache to provide an example context inwhich example embodiments may be implemented. However, persons skilledin the relevant art(s) will recognize that the disclosed technologiesare not limited to the context of a distributed cache. Rather, thedisclosed technologies are applicable to any suitable distributed store,including but not limited to a distributed cache, a distributed database(e.g., a distributed SQL database), or other suitable type ofdistributed storage system.

References in the specification to “one embodiment,” “an embodiment,”“an example embodiment,” or the like, indicate that the embodimentdescribed may include a particular feature, structure, orcharacteristic, but every embodiment may not necessarily include theparticular feature, structure, or characteristic. Moreover, such phrasesare not necessarily referring to the same embodiment. Furthermore, whena particular feature, structure, or characteristic is described inconnection with an embodiment, it is submitted that it is within theknowledge of one skilled in the relevant art(s) to implement suchfeature, structure, or characteristic in connection with otherembodiments whether or not explicitly described.

Example embodiments are capable of storing instances of data among nodesof a distributed store based on hierarchical scale unit values. Thenodes of the distributed store are hosted by a plurality of machines(e.g., computers or other processing systems). Each node includes one ormore data modules of the distributed store. A data module is arespective portion (e.g., partition(s) or other suitable portion) of thedistributed store or a replica of the distributed store. It should benoted that any portion of the distributed store may be replicated acrossmultiple nodes. For example, a first instance of a portion may beincluded in a first node, a second instance of the portion may beincluded in a second node, and so on. Moreover, a node may includemultiple instances of the same portion of the distributed store. A“replica of the distributed store”, however, refers to an instance ofall data stored in the distributed store. The distributed store may beimplemented in a networked environment or in absence of a network. Forinstance, the distributed store may be implemented in a cloud of a cloudcomputing environment.

A hierarchical scale unit is an entity (e.g., a node, a virtual machine,a machine, etc.) in a hierarchical information technology (IT)infrastructure that stores a distributed store. The hierarchical ITinfrastructure includes a plurality of levels and may have any suitableconfiguration. In one example configuration, nodes of the distributedstore are hosted on respective virtual machines, which are executed onrespective machines. The nodes of the distributed store may correspondto a first level of the hierarchical IT infrastructure, the virtualmachines may correspond to a second level of the infrastructure, and themachines may correspond to a third level of the infrastructure. Themachines can be located on respective pods, which may correspond to afourth level of the infrastructure. The pods can be grouped intorespective racks, which may correspond to a fifth level of theinfrastructure. The racks can be grouped into respective data centers,which may correspond to a sixth level of the infrastructure, and so on.In accordance with this example configuration, a hierarchical scale unitmay be a node in the first level of the hierarchical IT infrastructure,a virtual machine in the second level, a machine in the third level,etc.

The example hierarchical IT infrastructure levels described herein areprovided for illustrative purposes and are not intended to be limiting.For instance, the hierarchical IT infrastructure may not include one ormore of the example levels discussed herein. Moreover, the hierarchicalIT infrastructure may include level(s) in addition to or in lieu of oneor more of the example levels discussed herein.

A hierarchical scale unit value is a value (e.g., number, characterstring, etc.) that is assigned to a hierarchical scale unit of thehierarchical IT infrastructure. The hierarchical scale unit value thatis assigned to a hierarchical scale unit corresponds to thathierarchical scale unit and each of the hierarchical scale units inother respective levels of the hierarchical IT infrastructure thatinclude that hierarchical scale unit. In accordance with the exampleabove, if a node of the distributed store is represented as a firstnode, which is included in a fifth virtual machine of a seventh machine,which is stored on a third pod of a second rack in a fourth data center,the hierarchical scale unit value of that first node may be representedas 4.2.3.7.5.1. Such hierarchical scale unit values may be used to storeinstances of data among the hierarchical scale units of the distributedstore based on a magnitude of a difference between respectivehierarchical scale unit values.

A data manager is at least one computer or other processing system(s),including one or more processors, which distributes instances of datamodules of a distributed store among machines that host respectivenodes. In a replication scenario, multiple instances of data modules maybe stored in different nodes for “high availability” of those datamodules. The data manager also determines which instances of datamodules are to be primary instances of the data modules with respect todata operations and which are to be secondary instances of the datamodules with respect to the data operations.

A primary instance of a data module with respect to a data operation isan instance of the data module at which the data operation with respectto the data module is initially directed or at which the data operationwith respect to the data module is initiated. Examples of dataoperations include but are not limited to a read operation, a writeoperation, an eviction operation, a notification operation, etc. Forexample, an instance of a data module to which a read (or write)operation is initially directed with respect to the data module is theprimary instance of the data module with respect to that read (or write)operation. In another example, an instance of a data module at which aneviction (or notification) operation is initiated with respect to thedata module is the primary instance of the data module with respect tothat eviction (or notification) operation. Secondary instances of datamodules with respect to data operations are essentially “back-up”instances of the data modules with respect to the data operations. Itshould be noted that the data manager may store multiple primaryinstances of a data module among the nodes. For instance, storingmultiple instances of the data module may facilitate scaling of the dataoperations.

In accordance with example embodiments, a data manager is capable ofassigning hierarchical scale unit values to respective nodes of adistributed store. A primary instance of a data module with respect to adata operation is stored in a first node having a first hierarchicalscale unit value. A second instance (e.g., another primary instance or asecondary instance) of the data module with respect to the dataoperation is stored in a second node having a second hierarchical scaleunit value based on a magnitude of a difference between the first andsecond hierarchical scale unit values.

For example, the second instance may be stored in the second node basedon the magnitude of difference exceeding a threshold. In anotherexample, the second instance may be stored in the second node based onthe magnitude of difference exceeding a magnitude of a differencebetween the first hierarchical scale unit value and a hierarchical scaleunit value of any of the other nodes. In yet another example, the secondinstance may be stored in the second node based on the magnitude ofdifference exceeding a magnitude of a difference between the firsthierarchical scale unit value and a hierarchical scale unit value of anyof the other nodes having a load that does not exceed a threshold.

In some example embodiments, one or more of the hierarchical scale unitvalues may be weighted for the purpose of determining the magnitude ofdifference. The weights of such hierarchical scale unit values may bebased on any suitable one or more factors, including but not limited toloads of the respective nodes to which the respective weightedhierarchical scale unit values are assigned, load latencies of therespective nodes to which the respective weighted hierarchical scaleunit values are assigned, failure probabilities of the respective nodesto which the respective weighted hierarchical scale unit values areassigned, etc.

Example embodiments may be capable of storing a primary instance and oneor more secondary instances of a data module with respect to a dataoperation such that the primary instance is not stored in the same nodeas any secondary instance. Example embodiments may be capable of storingsecondary instances of a data module across multiple hierarchical scaleunit boundaries, which may result in a relatively lower probability thatthe data module will become inaccessible in the event of a data failure.For instance, a data failure with respect to an entity in thehierarchical IT infrastructure may be less likely to render allinstances of a data module inaccessible if the instances of the datamodule are stored in accordance with technique(s) described herein. Inan example implementation, the hierarchical scale units may begeographically diverse, such that storing the secondary instances of thedata module across hierarchical scale unit boundaries effectively storesthe secondary instances across geographic boundaries.

II. EXAMPLE IMPLEMENTATION OF A DISTRIBUTED CACHE

FIG. 1 is an example logical representation of a distributed cache 100.A distributed cache is a cache in which data is stored on a plurality ofmachines (e.g., machines 102A-102N). A machine is a computer (e.g.,server) or other processing system that is configured to support one ormore nodes of a distributed cache. Each node includes one or more datamodules of the distributed cache. A data module is a respective portion(e.g., partition(s) or other suitable portion) of the distributed cacheor a replica of the distributed cache. It should be noted that anyportion of the distributed cache may be replicated across multiplenodes. For instance, a first instance of a portion may be included in afirst node, a second instance of the portion may be included in a secondnode, and so on. Moreover, a node may include multiple instances of thesame portion of the distributed cache. A “replica of the distributedcache”, however, refers to an instance of all data stored in thedistributed cache.

Distributed cache 100 includes named caches 106A and 106B. A named cacheis a logical grouping of data. A named cache may be thought of as adatabase for ease of discussion, though the scope of the exampleembodiments is not limited in this respect. Named caches 106A and 106Bspecify physical configurations and cache policies, including but notlimited to failover, expiration, eviction, etc. Applications that needto communicate with a designated distributed cache (e.g., distributedcache 100) instantiate the same named cache.

An application may use one or more named caches based on the policiesfor the various caches. For example, a first type of data (e.g.,activity data) may be stored in a named cache that is partitioned, whilea second type of data (e.g., reference data) may be stored in a namedcache that is replicated. Partitioned and replicated distributed cachesare discussed in greater detail below.

Two named caches (i.e., named caches 106A and 106B) are shown in FIG. 1for illustrative purposes and are not intended to be limiting. Personsskilled in the relevant art(s) will recognize that distributed cache 100may include any number of named caches. Named cache 106A is shown tostore data associated with a product catalog, and named cache 106B isshown to store data associated with an electronics inventory, though itwill be recognized that named caches may store any suitable groupings ofdata.

Each of the nodes 104A-104Z (a.k.a. “cache hosts”) includes one or moredata modules of distributed cache 100. A data module is a respectiveportion (e.g., partition(s) or other suitable portion) of thedistributed cache or a replica of the distributed cache. It should benoted that any portion of the distributed cache may be replicated acrossmultiple nodes. For instance, a first instance of a portion may beincluded in a first node, a second instance of the portion may beincluded in a second node, and so on. Moreover, a node may includemultiple instances of the same portion of the distributed cache. A“replica of the distributed cache”, however, refers to an instance ofall data stored in the distributed cache. Nodes 104A-104Z are referredto collectively as “the cluster.”

Each of the named caches 106A and 106B includes one or more regions. Aregion is a logical grouping of objects in a named cache. For instance,named cache 106A is shown in FIG. 1 to include regions 108A-108Y forillustrative purposes. Accordingly, each data module among nodes104A-104Z may include one or more respective regions of named cache 106Aand/or named cache 106B. A region may be thought of as a table for easeof discussion, though the scope of the embodiments is not limited inthis respect. For instance, a region may store arbitrary sets of keyvalue pairs. A key value pair includes a key and a corresponding value.A key may be a string of characters, for example, that is used to find alocation in distributed cache 100. The value is data (e.g., an object)that corresponds to the location indicated by the key. Furtherdiscussion of key value pairs is provided below with reference to FIGS.2-5.

It should be noted that an application need not necessarily specify aregion in order to access a named cache (e.g., named cache 106A or106B). For instance, the application may use put, get, and removeapplication programming interfaces (APIs) using only a key to acorresponding object. In fact, the application may scale better when notusing regions because key value pairs that are written by theapplication can be distributed across a named cache without regard forregion. For example, if no region is specified during the creation andwriting of key value pairs, the key value pairs may be automaticallypartitioned into multiple implicitly created regions, for example.

Each region 108A-108Y includes one or more cache items. As shown in FIG.1, region 108A includes cache items 110A-110P for illustrative purposes.A cache item represents the lowest level of caching that includes theobject to be cached along with other information which may include butis not limited to a key, an object payload, one or more tags, a time tolive (TTL), created timestamp, a version number, other internalbookkeeping information, etc. Each of the cache items 110A-110P is shownto include a key, a payload, and tags for illustrative purposes, thoughit will be recognized that the example embodiments are not limited inthis respect. For example, cache items 110A-110P need not necessarilyinclude respective keys, payloads, and/or or tags. In another example,cache items 110A-110P may include information in addition to or in lieuof the keys, payloads, and/or tags shown in FIG. 1. The following is anexample of C# code that shows the creation of a named cache and region:

//CacheFactory class provides methods to return cache objects //Createinstance of CacheFactory (reads appconfig) CacheFactory fac = newCacheFactorc( ); //Get a named cache from the factory Cache catalog =fac.GetCache(“catalogcache”);//----------------------------------------------------------- //SimpleGet/Put catalog.Put(“toy-101”, new Toy(“Thomas”, .,.)); //From the sameor a different client Toy toyObj = (Toy)catalog.Get(“toy-101”);//----------------------------------------------------------- //Regionbased Get/Put catalog.CreateRegion(“toyRegion”); //Both toy and toypartsare put in the same region catalog.Put(“toyRegion”, “toy-101”, new Toy(.,.)); catalog.Put(“toyRegion”, “toypart-100”, new ToyParts(...)); ToytoyObj = (Toy)catalog.Get(“toyRegion”, “toy-101”);

The example code provided above is not intended to be limiting. It willbe recognized that any suitable type of code may be used to create anamed cache and/or a region.

In a replication scenario, multiple instances of data modules may bestored across nodes 104A-104Z for “high availability”. Each of the nodes104A-104Z may be a primary node or a secondary node with respect to anyone or more data modules of distributed cache 100. A primary node is anode that includes a primary instance of a designated data module. Forinstance, access to the designated data module is routed to the primarynode for the designated data module. A secondary node is a node thatincludes a secondary instance of a designated region. For instance, if anamed cache is configured to have “backup instances” of a data modulefor high availability, then a primary node is specified for providingaccess to the data module, and one or more other nodes are chosen toinclude one or more respective secondary instances of the data module incase the primary instance becomes inaccessible, for example. Changesthat are made to the primary instance of the data module are reflectedin the secondary instances. Such changes may be provided to thesecondary instances synchronously or asynchronously. In the asynchronousapproach, if the primary node for a data module fails, the secondarynode(s) can be used to read data that is stored in the data modulewithout having to have logs written to disk. For instance, failure ofthe primary node causes a secondary node to become the primary node, sothat the data module remains accessible.

A node may be a primary node with respect to one or more first datamodules and a secondary node with respect to one or more second datamodules of the same distributed cache. For example, if the node isspecified to have the primary instance of the first data module(s), thenode is considered to be a primary node with respect to the first datamodule(s). Any other nodes that include an instance of a first datamodule but do not provide access to that first data module areconsidered to be secondary nodes with respect to that first data module.If the node does not provide access to the second data module(s), thenode is considered to be a secondary node with respect to the seconddata module(s). A node that provides access to a second data module isconsidered to be a primary node with respect to that second data module.

Distributed cache 100 may be any of a variety of cache types, includingbut not limited to a partitioned cache, replicated cache, or localcache. It should be recognized that each of these types of distributedcache may include multiple instances of any one or more data modules.For example, a plurality of instances of a data module may be stored ina plurality of respective nodes of the distributed cache. In anotherexample, a plurality of instances of a data module may be stored on acommon node. One instance of each data module may be designated as theprimary instance of the respective data module. Other instances of thedata modules are designated as secondary instances of the respectivedata modules.

Applications may choose the appropriate type of cache based on the typeof data to be cached, for example. A partitioned cache is a cache thatincludes regions that are partitioned among the nodes on which a namedcache is defined. The combined memory of the machines across the cluster(e.g., machines 102A-102N) can be used to cache data, which may increasethe amount of memory available to distributed cache 100. All dataoperations associated with a data partition are initiated at orinitially directed to the node(s) that contain the primary instance(s)of the data partition with respect to the respective data operations.

A partitioned cache may be used to achieve a desired scale. Forinstance, machines and/or nodes may be added to distributed cache 100 toenable automatic load balancing to occur. For instance, some partitionsthat are stored among machines 102A-102N (or nodes 104A-104Z) may bemigrated to the added machines and/or nodes. Such automatic loadbalancing may result in keys being distributed across the revisedcluster. Access requests may be routed to more machines, which mayresult in an increased throughput. Additional machines may provideadditional memory. Additional memory may enable distributed cache 100 tostore more data.

FIG. 2 is a block diagram of an example routing protocol 200 used toroute requests and responses of Put and Get operations 206, 208 in apartitioned distributed cache having primary instance(s) of datapartition(s) 210A-210C with respect to a data operation. Each of primaryinstance(s) 210A-210C includes one or more primary instances of one ormore respective data partitions. It should be noted that in theembodiment of FIG. 2 no replicas of data partitions are included innodes 104A-104C because each of the nodes 104A-104C includes onlyprimary instance(s) of respective data partition(s). Only one instanceof a data partition can be a primary instance with respect to a givendata operation at a given time. A Put operation (e.g., Put operation206) writes data in a distributed cache (e.g., distributed cache 100). AGet operation (e.g., Get operation 208) reads data from a distributedcache (e.g., distributed cache 100). The Put and Get operations 206, 208are performed by respective cache clients 202A, 202B.

A cache client is a software application that communicates with a nodefor writing and/or reading data with respect to data partitions in adistributed cache. A cache client may be configured as a simple cacheclient or a routing cache client. A simple cache client is a cacheclient that is configured to contact one node (e.g., one of nodes104A-104C) in a cluster. The simple cache client has no routingcapabilities and does not track where each cached object is stored inthe distributed cache. If a simple cache client requests an object froma node that does not store the object or that is not the primary nodefor that object, that node retrieves the object from the cluster andthen returns the object to the simple cache client. A routing client, onthe other hand, is a cache client that has routing capabilities. Therouting cache client includes a routing table to keep track of cachedobject placement across the nodes (e.g., nodes 104A-104C) in thecluster. Because the routing cache client keeps track of where each ofthe cached objects are, the routing cache client can make requestsdirectly to the node that stores the object in memory.

As shown in FIG. 2, cache clients 202A and 202B are configured as simplecache clients for illustrative purposes. It will be recognized, however,that any one or more of cache clients 202A or 202B may be configured asa routing cache client. In FIG. 2, Put operation 206 assigns a value“V2” for a key “K2”. A routing layer 204A of node 104A determines thatthe key “K2” is associated with node 104B. Accordingly, routing layer204A routes the request that is associated with Put operation 206 toprimary data partition 210B of node 104B. A routing layer 204C routes arequest corresponding to Get operation 208 for the key “K2” to primarydata partition 210B, as well. It should be noted that routing layers maybe incorporated into cache clients. Accordingly, routing layer 204A maybe incorporated into cache client 202A, and/or routing layer 204C may beincorporated into cache client 202B.

FIG. 3 is a block diagram of an example routing protocol 300 used toroute requests and responses of Put and Get operations 206, 208 in apartitioned distributed cache having primary instance(s) of datapartition(s) 210A-210C and secondary instance(s) of data partition(s)302A-302C with respect to a data operation. Data (e.g., key value pairs“K1, V1”, “K2, V2”, and “K3, V3”) are replicated across nodes 104A-104C,though data partitions 210A-210C and 302A-302C are not replicated.

As shown in FIG. 3, cache client 202A sends a request to put the value“V2” with the key “K2” to node 104A. Routing layer 204A determines thatthe key “K2” belongs to node 104B and therefore routes the key “K2” tonode 104B. Node 104B performs Put operation 206 locally and also sendsthe put request corresponding to Put operation 206 to secondary nodes104A and 104C. Nodes 104A and 104C are deemed to be secondary nodes withrespect to the key value pair “K2, V2” because nodes 104A and 104Cinclude secondary instances of the key value pair “K2, V2.” Node 104Bwaits for an acknowledgement from nodes 104A and 104C that the requestfor the key value pair “K2, V2” has been received from node 104B. Uponreceiving such acknowledgement, node 104B provides an indicatoracknowledging success of the Put operation to node 104A. Node 104Aforwards the indicator to cache client 202A.

Get operation 208 is performed in a manner similar to that discussedabove with reference to FIG. 2. For instance, routing layer 204C routesthe request corresponding to Get operation 208 to primary data partition210B, which includes the key “K2.”

FIG. 4 is a block diagram of an example routing protocol 400 used toroute requests and responses of Put and Get operations 206, 208 in areplicated distributed cache. As shown in FIG. 4, nodes 104A-104Cinclude respective instances of replicated data partition(s) 402A-402C.Each instance of the replicated data partitions 402A-402C includes keyvalue pairs “K1, V1”, “K2, V2”, and “K3, V3.” Cache client 202A providesa Put request corresponding to Put operation 206 to node 104A. The Putrequest includes the key “K2” and the value “V2.” Node 104A routes thePut request to node 104B via routing layer 204A because node 104B is theprimary node for the key “K2” in this example. Node 104B performs awrite operation locally in response to receiving the Put request. Node104B provides a notification to node 104A indicating that node 104B hasperformed the write operation. Node 104A forwards the notification tocache client 202A. Node 104B meanwhile asynchronously propagates thechange to all other nodes of the distributed cache (e.g., node 104C inthis example). Get operation 208 is performed locally in the replicateddistributed cache.

FIG. 5 is a block diagram of an example routing protocol 500 used toroute requests and responses of Put and Get operations 206, 208 usinglocal caches 502A, 502B. As shown in FIG. 5, cache clients 202A, 202Binclude respective local caches 502A, 502B. For instance, applicationsmay maintain a local cache in the application process space forfrequently accessed items. Each local cache 502A, 502B is shown toinclude a respective routing layer 504A, 504B. In local caches 502A,502B, payload may be kept in the object form to save the deserializationcost and/or the network hop to the primary node, for example, which mayimprove performance of the distributed cache.

III. EXAMPLE EMBODIMENTS FOR STORING INSTANCES OF DATA AMONG NODES OF ADISTRIBUTED STORE BASED ON HIERARCHICAL SCALE UNIT VALUES

FIG. 6 is a block diagram of an example hierarchical informationtechnology (IT) infrastructure 600 in which a distributed store (e.g.,distributed cache 100 shown in FIG. 1) may be stored in accordance withan embodiment. As shown in FIG. 6, hierarchical IT infrastructure 600includes levels 602A-602F. For the sake of explanation only, first level602A will be referred to as being at the top of hierarchical ITinfrastructure 600, and sixth level 602F will be referred to as being atthe bottom of hierarchical IT infrastructure 600.

First level 602A includes a plurality of data centers, labeled as DataCenter 1 through Data Center Z. Second layer 602B includes Z sets ofracks, each of which is included in a respective data center of firstlevel 602A. For instance, Data Center 1 in first level 602A includes set604A of the racks in second level 602B. Data Center Z includes set 604Zof the racks in second level 602B. Each rack in second level 602B isassigned a hierarchical scale unit value that corresponds to that rackand to the data center in which the rack is included. For example, theracks in set 604A, which are included in Data Center 1, are assigned thehierarchical scale unit values 1.1, 1.2, and so on. The racks in set604Z, which are included in Data Center Z, are assigned the hierarchicalscale unit values Z.1, Z.2, and so on.

Third level 602C includes a plurality of sets of pods. Each rack insecond level 602B includes a respective set of the pods in third level602C. For example, Rack 1.1 in second level 602B includes set 606A ofthe pods in third level 602C. The pods in set 606A are assigned thehierarchical scale unit values 1.1.1, 1.1.2, and so on. Rack Z.1includes set 606Y of the pods in third level 602C. The pods in set 606Yare assigned the hierarchical scale unit values Z.1.1, Z.1.2, and so on.

Fourth level 602D includes a plurality of sets of machines. Each pod inthird level 602C includes a respective set of the machines in fourthlevel 602D. For example, Pod 1.1.1 in third level 602C includes set 608Aof the machines in fourth level 602D. The machines in set 608A areassigned the hierarchical scale unit values 1.1.1.1, 1.1.1.2, and so on.Pod Z.1.2 includes set 608X of the machines in fourth level 602D. Themachines in set 608X are assigned the hierarchical scale unit valuesZ.1.2.1, Z.1.2.2, and so on.

Fifth level 602E includes a plurality of sets of virtual machines. Eachmachine in fourth level 602D includes a respective set of the virtualmachines in fifth level 602E. For example, Machine 1.1.1.1 in fourthlevel 602D includes set 610A of the virtual machines in fifth level602E. The virtual machines in set 610A are assigned the hierarchicalscale unit values 1.1.1.1.1, 1.1.1.1.2, and so on. Machine Z.1.2.2includes set 610W of the virtual machines in fifth level 602E. Thevirtual machines in set 610W are assigned the hierarchical scale unitvalues Z.1.2.2.1, Z.1.2.2.2, and so on.

Sixth level 602F includes a plurality of sets of nodes. Each virtualmachine in fifth level 602E includes a respective set of the nodes insixth level 602F. For example, Virtual Machine 1.1.1.1.1 in fifth level602E includes set 612A of the nodes in sixth level 602F. The nodes inset 612A are assigned the hierarchical scale unit values 1.1.1.1.1.1,1.1.1.1.1.2, and so on. Virtual Machine Z.1.2.2.1 includes set 612V ofthe nodes in sixth level 602F. The nodes in set 612V are assigned thehierarchical scale unit values Z.1.2.2.1.1, Z.1.2.2.1.2, and so on.

In accordance with some example embodiments, the hierarchical scale unitvalues are weighted based on at least one factor for the purpose ofdetermining magnitudes of difference between the respective hierarchicalscale unit values. Example factors include but are not limited to loadsof respective hierarchical scale units of hierarchical IT infrastructure600, load latencies associated with respective hierarchical scale unitsof hierarchical IT infrastructure 600, failure probabilities associatedwith respective hierarchical scale units of hierarchical ITinfrastructure 600, etc. A failure probability is a likelihood ofencountering a data failure.

A load of a hierarchical scale unit may be based on any of a variety offactors, including but not limited to a proportion of the hierarchicalscale unit's processing capabilities that is being consumed, aproportion of the hierarchical scale unit's bandwidth that is beingconsumed, a number of requests that are processed by the hierarchicalscale unit in a designated period of time, and/or other suitablefactors. A load latency associated with a hierarchical scale unit may bebased on a number of switches that are accessed in order to read and/orwrite data at the hierarchical scale unit, and/or other suitablefactors. For example, storing an instance of a data module at aparticular rack may result in a 10% increase in latency as compared tostoring the instance at another rack. In another example, storing theinstance of the data module at a particular data center may result in a100% increase in latency as compared to storing the instance at anotherdata center. A failure probability associated with a hierarchical scaleunit indicates the likelihood that a data failure is to occur withrespect to the hierarchical scale unit. Further discussion of weightedhierarchical scale unit values is provided below with reference to FIGS.8 and 9.

As shown in FIG. 6, hierarchical IT infrastructure 600 includes sixlevels 602A-602F for illustrative purposes and is not intended to belimiting. Persons skilled in the relevant art(s) will recognize thathierarchical IT infrastructure 600 may include any number of levels. Forinstance, hierarchical IT infrastructure 600 may not include one or moreof the levels 602A-602F. Moreover, hierarchical IT infrastructure 600may include level(s) in addition to or in lieu of one or more of thelevels 602A-602F.

Hierarchical scale unit values, such as the example hierarchical scaleunit values described with respect to FIG. 6, may be used to storeinstances of a data module among the hierarchical scale units (e.g.,nodes, virtual machines, machines, etc.) of the distributed store basedon a magnitude of a difference between respective hierarchical scaleunit values. Techniques for storing instances of a data module amongnodes of a distributed store are discussed in greater detail below withreference to FIGS. 7-11.

FIG. 7 is a block diagram of an example computer system 700 thatutilizes a distributed store (e.g., distributed cache 100 shown inFIG. 1) in accordance with an embodiment. Generally speaking, computersystem 700 operates to store instances of data (e.g., objects) amongnodes of the distributed store. As shown in FIG. 7, computer system 700includes a plurality of user systems 702A-702M, a data manager 704, anetwork 708, and a hosting system 710. Hosting system 710 includes aplurality of machines 102A-102N, which are discussed in greater detailbelow. Communication among user systems 702A-702M, data manager 704, andmachines 102A-102N is carried out over network 708 using well-knownnetwork communication protocols. Network 708 may be a wide-area network(e.g., the Internet), a local area network (LAN), another type ofnetwork, or a combination thereof.

User systems 702A-702M are computers or other processing systems, eachincluding one or more processors, that are capable of communicating withmachines 102A-102N. User systems 702A-702M are capable of accessing datathat is stored in the distributed store, which is hosted by hostingsystem 710. The distributed store includes nodes 712A-712N, which arehosted by respective machines 102A-102N. For example, user systems702A-702M may be configured to provide write requests (e.g., Putrequests) to machines 102A-102N for requesting to write data thereto. Inanother example, user systems 702A-702M may be configured to provideread requests (e.g., Get requests) to machines 102A-102M for requestingto read data that is stored thereon. For instance, a user may initiate awrite request or a read request using a client deployed on a user system702 that is owned by or otherwise accessible to the user.

Hosting system 710 hosts the distributed store. Hosting system 710includes a plurality of machines 102A-102N. Machines 102A-102N arecomputers or other processing systems, each including one or moreprocessors, that are capable of communicating with user systems702A-702M. Machines 102A-102N are configured to host respective node(s)712A-712N. Each node includes respective data module(s) of thedistributed store. As shown in FIG. 1, first node(s) 712A include firstdata module(s) 714A, second node(s) 712B include second module(s) 714B,and so on.

A data module is a respective portion (e.g., item(s), region(s),partition(s), etc.) of the distributed store or a replica of thedistributed store. It should be noted that any portion of thedistributed store may be replicated across nodes 712A-712N. Forinstance, a first instance of a portion may be included in a node of thefirst node(s) 712A, a second instance of the portion may be included ina node of the second node(s) 712B, and so on. Moreover, a node mayinclude multiple instances of the same portion of the distributed store.For example, a node of the first node(s) 712A may include two or moreinstances of item(s), region(s), data partition(s), or other suitableportion of the distributed store. A “replica of the distributed store”,however, refers to an instance of all data stored in the distributedstore.

Any number of instances of a data module may be stored among nodes712A-712N. One instance of the data module is often specified as theprimary instance of that data module with respect to a data operation ata given time, though it will be recognized that multiple primaryinstances of the data module may be stored among nodes 712A-712N forpurposes such as enabling or facilitating scalability of data operationswith respect to the data module. Some example embodiments are describedwith reference to storage of a single primary instance of a data modulefor illustrative purposes and are not intended to be limiting. Personsskilled in the relevant art(s) will recognize that such exampleembodiments are applicable to storage of multiple primary instances ofthe data module.

Primary instance(s) of the data module with respect to a data operationare said to be in a primary state with respect to the data operation,and any other instances are said to be in a secondary state with respectto the data operation. It should be noted that a node that includes aprimary instance of a data module is referred to as the primary node forthat data module. Nodes that include secondary instances of a datamodule are referred to as secondary nodes for that data module. It willbe recognized that a node may be the primary node for some data modulesand a secondary node for other data modules.

Any of a variety of applications may be deployed on machines 102A-102N.As shown in FIG. 7, first application(s) 716A are deployed on machine102A, second application(s) 716B are deployed on machine 102B, and soon. Application(s) 716A-716N may perform operations that create new datato be written to the distributed store or that read or modify existingdata that is stored in the distributed store. For instance, applications716A-716N may use Put requests and Get requests to respectively writeand read data across machines 102A-102N. In some example embodiments,user systems 702A-702M are capable of accessing one or more of theapplications 716A-716N without having to go through network 708. Any oneor more of the application(s) 716A-716N may be deployed on a respectiveuser system 702A-702M, in addition to or in lieu of being deployed on arespective machine 102A-102N.

Data manager 704 is at least one computer or other processing system(s),including one or more processors, which distributes instances of datamodules of the distributed store among machines 102A-102N. Data manager704 also determines which instances of respective data modules are to beprimary data modules and which are to be secondary data modules.

Data manager 704 includes a hierarchy scaler 706. Hierarchy scaler 706is configured to assign hierarchical scale unit values to respectivehierarchical scale units of a hierarchical IT infrastructure (e.g.,hierarchical IT infrastructure 600) that stores the distributed store.The hierarchical scale unit value that is assigned to a hierarchicalscale unit corresponds to that hierarchical scale unit and each of thehierarchical scale units in other respective levels of the hierarchicalIT infrastructure that include that hierarchical scale unit. Forinstance, hierarchical scaler 706 may assign a hierarchical scale unitvalue to each of the nodes 712A-712N. For example, the hierarchicalscale unit value(s) assigned to respective first node(s) 712A mayindicate that first node(s) 712A are included in machine 102A and/orperhaps hierarchical scale unit(s) in other respective level(s) of thehierarchical IT infrastructure. The hierarchical scale unit value(s)assigned to respective second node(s) 712B may indicate that secondnode(s) 712B are included in machine 102B and/or perhaps hierarchicalscale unit(s) in other respective level(s) of the hierarchical ITinfrastructure, and so on.

Hierarchy scaler 706 is further configured to store instances of a datamodule among nodes 712A-712N based on the hierarchical scale unit valuesthat are assigned to nodes 712A-712N. For example, hierarchical scaler706 may store first and second instances of the data module inrespective first and second nodes 712A, 712B having respective first andsecond hierarchical scale unit values based on a magnitude of adifference between the first and second hierarchical scale unit values.In an example embodiment, the first instance of the data module is aprimary instance, and the second instance of the data module is asecondary instance. In another example embodiment, the first and secondinstances of the data module are respective primary instances. In yetanother example embodiment, the first and second instances of the datamodule are respective secondary instances. Further discussion oftechniques for storing instances of a data module among nodes of adistributed store is provided below with reference to FIGS. 8-11.

Data manager 704 is shown in FIG. 7 to be a standalone computer(s) orprocessing system(s) for illustrative purposes and is not intended to belimiting. It will be recognized that data manager 704 may be partiallyor entirely incorporated into hosting system 710. For instance, aportion or all of data manager 704 may be stored on one of the machines102A-102N or distributed among any two or more of the machines102A-102N.

In an example embodiment, hosting system 710 is configured in a cloud ofa cloud computing environment. For instance, machines 102A-102N may beservers that are accessible over the Internet via a client (e.g., Webcrawler, Web browser, etc.) deployed on a user system 702 that is ownedby or otherwise accessible to a user.

In another example embodiment, the distributed store is a distributedcache. In accordance with this example embodiment, computer system 700may further include a database (not shown in FIG. 7). The database maybe configured to store original data in a structured manner inaccordance with a database model (e.g., a relational model, ahierarchical model, a network model, etc.). User systems 702A-702Mand/or machines 102A-102N may access the original data in accordancewith query language(s), including but not limited to structured querylanguage (SQL), SPARQL, extensible markup language path language(XPath), etc. Any one or more data modules 714A-714C of the distributedstore may store a frequently used subset of the original data that isstored in the database, for example. The original data may be expensiveto access due to a relatively longer access time associated with thedatabase, as compared to an access time associated with the distributedstore. Accordingly, it may be desirable to access the data at the nodes712A-712N, rather than at the database.

FIGS. 8A-8C depict respective portions of a flowchart 800 of a methodfor storing instances of a data module among nodes of a distributedstore based on hierarchical scale unit values in accordance with anembodiment. Flowchart 800 is described from the perspective of a datamanager. Flowchart 800 may be performed by data manager 704 of computersystem 700 shown in FIG. 7, for example. For illustrative purposes,flowchart 800 is described with respect to a data manager 704′ shown inFIG. 9, which is an example of a data manager 704, according to anembodiment. In this document, whenever a prime is used to modify areference number, the modified reference number indicates an example (oralternate) implementation of the element that corresponds to thereference number.

As shown in FIG. 9, data manager 704′ includes a hierarchy scaler 706′.Hierarchy scaler 706′ includes an assigning module 902, a determinationmodule 904, a weight module 906, a storing module 908, a comparingmodule 910, and an elimination module 912. Further structural andoperational embodiments will be apparent to persons skilled in therelevant art(s) based on the discussion regarding flowchart 800.Flowchart 800 is described as follows.

As shown in FIG. 8A, the method of flowchart 800 begins at step 802. Instep 802, a plurality of hierarchical scale unit values is assigned to aplurality of respective nodes of a distributed store. In an exampleimplementation, assigning module 902 assigns the plurality ofhierarchical scale unit values to the plurality of respective nodes.

At step 804, a determination is made whether a plurality of weights isto be applied to the plurality of respective hierarchical scale unitvalues. The plurality of weights may be based on any suitable one ormore factors, including but not limited to loads of respective nodes towhich the respective hierarchical scale unit values are assigned, loadlatencies of the respective nodes to which the respective hierarchicalscale unit values are assigned, failure probabilities of the respectivenodes to which the respective hierarchical scale unit values areassigned, etc. The determination whether the plurality of weights is tobe applied to the plurality of respective hierarchical scale unit valuesmay be based on a value of a weight indicator. For instance, the weightindicator having a first value may indicate that the weights are to beapplied. The weight indicator having a second value may indicate thatthe weights are not to be applied. In an example implementation,determination module 904 determines whether the plurality of weights isto be applied to the plurality of respective hierarchical scale unitvalues. If the plurality of weights is to be applied to the plurality ofrespective hierarchical scale unit values, flow continues to step 806.Otherwise, flow continues to step 808.

At step 806, the plurality of weights is applied to the plurality ofrespective hierarchical scale unit values. For instance, the pluralityof hierarchical values may be multiplied by the plurality of respectiveweights to provide weighted hierarchical weighted scale unit values. Inan example implementation, weight module 906 applies the plurality ofweights to the plurality of respective hierarchical scale unit values.

At step 808, a primary instance of a data module with respect to a dataoperation is stored in a first node of the plurality of nodes. A primaryinstance of a data module with respect to a data operation is aninstance of the data module at which the data operation with respect tothe data module is initially directed or at which the data operationwith respect to the data module is initiated. The first node has a firsthierarchical scale unit value of the plurality of hierarchical scaleunit values. In an example implementation, storing module 908 stores theprimary instance of the data module with respect to the data operationin the first node.

At step 810, magnitudes of differences between the first hierarchicalscale unit value and the plurality of respective hierarchical scale unitvalues are determined. For instance, each hierarchical scale unit valueof the plurality of hierarchical scale unit values may be compared tothe first hierarchical scale unit value to provide a respectivedifference therebetween, the difference having a respective magnitude.In an example implementation, determination module 904 determines themagnitudes of the differences. Upon performance of step 810, flowcontinues to step 812, which is shown in FIG. 8B.

At step 812, a determination is made whether the magnitudes are to becompared to a first threshold. The determination whether the magnitudesare to be compared to the first threshold may be based on a value of athreshold indicator. For instance, the threshold indicator having afirst value may indicate that the magnitudes are to be compared to thefirst threshold. The threshold indicator having a second value mayindicate that the magnitudes are not to be compared to the firstthreshold. In an example implementation, determination module 904determines whether the magnitudes are to be compared to the firstthreshold. If the magnitudes are not to be compared to the firstthreshold, flow continues to step 820. If the magnitudes are to becompared to the first threshold, however, flow continues to step 814.

At step 814, each of the magnitudes is compared to the first threshold.In an example implementation, comparing module 910 compares each of themagnitudes to the first threshold.

At step 816, a determination is made whether each magnitude is greaterthan the first threshold. In an example implementation, determinationmodule 904 determines whether each magnitude is greater than the firstthreshold. If each magnitude is greater than the first threshold, flowcontinues to step 820. Otherwise, flow continues to step 818.

At step 818, each node for which the respective magnitude is less thanthe first threshold is eliminated from the plurality of nodes. It shouldbe noted that eliminating such nodes from the plurality of nodes doesnot affect the operability of those nodes. Rather, such nodes are merelyeliminated from consideration for storing a second instance of the datamodule with respect to flowchart 800. In an example implementation,elimination module 912 eliminates each node for which the respectivemagnitude is less than the first threshold from the plurality of nodes.

At step 820, a determination is made whether loads of respective nodesare to be compared to a second threshold. The determination whether theloads of the respective nodes are to be compared to the second thresholdmay be based on a value of a load indicator. For example, the loadindicator having a first value may indicate that the loads of therespective nodes are to be compared to the second threshold. Thethreshold indicator having a second value may indicate that the loads ofthe respective nodes are not to be compared to the second threshold. Inan example implementation, determination module 904 determines whetherthe loads of the respective nodes are to be compared to the secondthreshold. If the loads of the respective nodes are to be compared tothe second threshold, flow continues to step 822. Otherwise, flowcontinues to step 828, which is shown in FIG. 8C.

At step 822, a plurality of loads of the plurality of respective nodesis compared to the second threshold. The load of a node may be based onany of a variety of factors, including but not limited to a proportionof the node's processing capabilities that is being consumed, aproportion of the node's bandwidth that is being consumed, a number ofrequests that are processed by the node in a designated period of time,and/or other suitable factors. In an example implementation, comparingmodule 910 compares the plurality of loads of the plurality ofrespective nodes to the second threshold.

At step 824, a determination is made whether each load is less than thesecond threshold. In an example implementation, determination module 904determines whether each load is less than the second threshold. If eachload is less than the second threshold, flow continues to step 828,which is shown in FIG. 8C. Otherwise, flow continues to step 826.

At step 826, each node for which the respective load is greater than thesecond threshold is eliminated from the plurality of nodes. It should benoted that eliminating such nodes from the plurality of nodes does notaffect the operability of those nodes. Rather, such nodes are merelyeliminated from consideration for storing a second instance of the datamodule with respect to flowchart 800. In an example implementation,elimination module 912 eliminates each node for which the respectiveload is greater than the second threshold from the plurality of nodes.

At step 828, a determination is made whether a second instance of thedata module with respect to the data operation is to be stored in a nodeof the plurality of nodes that corresponds to the greatest magnitude.The second instance may be another primary instance or a secondaryinstance of the data module. A secondary instance of a data module withrespect to a data operation is an instance of the data module at whichthe data operation with respect to the data module is not initiallydirected and at which the data operation with respect to the data moduleis not initiated. For instance, it may be desirable for the primaryinstance and the secondary instance of the data module with respect tothe data operation to be stored as far from each other as possiblewithin the hierarchical IT infrastructure.

The determination whether the second instance of the data module withrespect to the data operation is to be stored in a node of the pluralityof nodes that corresponds to the greatest magnitude may be based on avalue of a magnitude indicator. For instance, the magnitude indicatorhaving a first value may indicate that the second instance of the datamodule with respect to the data operation is to be stored in a node ofthe plurality of nodes that corresponds to the greatest magnitude. Themagnitude indicator having a second value may indicate that norequirement exists for the second instance of the data module withrespect to the data operation to be stored in a node of the plurality ofnodes that corresponds to the greatest magnitude.

In an example implementation, determination module 904 determineswhether the second instance of the data module with respect to the dataoperation is to be stored in the node of the plurality of nodes thatcorresponds to the greatest magnitude. If the second instance of thedata module with respect to the data operation is to be stored in thenode of the plurality of nodes that corresponds to the greatestmagnitude, flow continues to step 830. Otherwise, flow continues to step832.

At step 830, the magnitudes corresponding to the respective nodes of theplurality of nodes are compared to determine a second node thatcorresponds to the greatest magnitude. For instance, the node thatcorresponds to the greatest magnitude may be designated as the secondnode. In an example implementation, comparing module 910 compares themagnitudes corresponding to the respective nodes of the plurality ofnodes to determine the second node that corresponds to the greatestmagnitude.

At step 832, a second instance of the data module with respect to thedata operation is stored in a second node of the plurality of nodeshaving a second hierarchical scale unit value of the plurality ofhierarchical scale unit values based on a magnitude of a differencebetween the first hierarchical scale unit value and the secondhierarchical scale unit value. For example, if step 812 was performed,the second instance with respect to the data operation is stored basedon the magnitude of the difference between the first and secondhierarchical scale unit values exceeding the first threshold. If step828 was performed, the second instance with respect to the dataoperation is stored in the second node based on the magnitude of thedifference between the first and second hierarchical scale unit valuesbeing the greatest magnitude generally or being the greatest magnitudewith respect to nodes having respective loads that are less than thesecond threshold. In an example implementation, storing module 908stores the second instance of the data module with respect to the dataoperation in the second node.

At step 834, a determination is made whether another instance of thedata module with respect to the data operation is to be stored. Thedetermination whether another instance of the data module with respectto the data operation is to be stored may be based on a value of aninstance indicator. For example, the instance indicator having a firstvalue may indicate that another instance of the data module with respectto the data operation is to be stored. The instance indicator having asecond value may indicate that no other instance of the data module withrespect to the data operation is to be stored. In an exampleimplementation, determination module 904 determines whether anotherinstance of the data module with respect to the data operation is to bestored. If another instance of the data module with respect to the dataoperation is to be stored, flow continues to step 836. Otherwise,flowchart 800 ends.

At step 836, criteria regarding a node in which another instance of thedata module with respect to the data operation is to be stored areidentified. For example, the criteria may specify that the node is tohave a hierarchical scale unit value that is less than a hierarchicalscale unit value of any other node of the plurality of nodes other thanthe first and second nodes. In another example, the criteria may specifythat the node is to have a hierarchical scale unit value that is greaterthan a hierarchical scale unit value of any other node of the pluralityof nodes other than the first and second nodes. In yet another example,the criteria may specify that the node is to have a hierarchical scaleunit value that is approximately half of the sum of the first and secondhierarchical scale unit values. In still another example, the criteriamay specify that another instance of the data module is to be stored ina node based on a load of the node. For instance, the criteria mayspecify that the load of the node is not to exceed a threshold in orderfor another instance of the data module with respect to the dataoperation to be stored in the node.

In an example implementation, determination module 904 identifies thecriteria of the node in which another instance of the data module withrespect to the data operation is to be stored. The example criteriadiscussed herein are provided for illustrative purposes and are notintended to be limiting. Any suitable criteria regarding a node may bespecified for storing another instance of the data module with respectto the data operation in the node.

At step 838, another instance of the data module with respect to thedata operation is stored in a node of the plurality of nodes inaccordance with the criteria. In an example implementation, storingmodule 908 stores another instance of the data module with respect tothe data operation in the node of the plurality of nodes in accordancewith the criteria.

In some example embodiments, one or more steps 802, 804, 806, 808, 810,812, 814, 816, 818, 820, 822, 824, 826, 828, 830, 832, 834, 836, and/or838 of flowchart 800 may not be performed. Moreover, steps in additionto or in lieu of steps 802, 804, 806, 808, 810, 812, 814, 816, 818, 820,822, 824, 826, 828, 830, 832, 834, 836, and/or 838 may be performed. Itwill be recognized that any one or more factors that are considered forstoring a primary instance of a data module with respect to a dataoperation may be used for storing a secondary instance of the datamodule with respect to the data operation, and vice versa. Moreover,factor(s) that may be used to apply weights to hierarchical scale unitvalues may be used for storing instance(s) of a data module amonghierarchical scale units (e.g., nodes) having hierarchical scale unitvalues that are not weighted.

For instance, it may be desirable to store instance(s) of a data moduleat hierarchical scale units that have relatively low loads, loadlatencies, and/or failure probabilities. Accordingly, an instance of thedata module may be stored at a hierarchical scale unit having a loadthat is less than a threshold load. In accordance with this example,hierarchical scale units having respective loads that exceed thethreshold load may not be considered for storage of the instance of thedata module.

In another example, an instance of the data module may be stored at ahierarchical scale unit having a load that is less than a load of otherhierarchical scale unit(s) (e.g., any other hierarchical scale unit) ina designated level of the hierarchical IT infrastructure.

In yet another example, an instance of the data module may be stored ata hierarchical scale unit having a load latency that is less than athreshold latency. In accordance with this example, hierarchical scaleunits having respective load latencies that exceed the threshold latencymay not be considered for storage of the instance of the data module.

In still another example, an instance of the data module may be storedat a hierarchical scale unit having a load latency that is less than aload latency of other hierarchical scale unit(s) (e.g., any otherhierarchical scale unit) in a designated level of the hierarchical ITinfrastructure.

In another example, an instance of a data module may be stored at ahierarchical scale unit having a failure probability that is less thanthe threshold failure probability. In accordance with this example,hierarchical scale units having respective failure probabilities thatexceed the threshold may not be considered for storage of the instanceof the data module.

In yet another example, an instance of the data module may be stored ata hierarchical scale unit having a failure probability that is less thana failure probability of other hierarchical scale unit(s) (e.g., anyother hierarchical scale unit) in a designated level of the hierarchicalIT infrastructure.

It will be recognized that data manager 704′ may not include one or moreof assigning module 902, determination module 904, weight module 906,storing module 908, comparing module 910, and/or elimination module 912.Furthermore, data manager 704′ may include modules in addition to or inlieu of assigning module 902, determination module 904, weight module906, storing module 908, comparing module 910, and/or elimination module912.

FIG. 10 depicts a flowchart 1000 of another method for storing instancesof a data module among nodes of a distributed store based onhierarchical scale unit values in accordance with an embodiment.Flowchart 1000 is described from the perspective of a data manager.Flowchart 1000 may be performed by data manager 704 of computer system700 shown in FIG. 7, for example. For illustrative purposes, flowchart1000 is described with respect to a data manager 704″ shown in FIG. 11,which is an example of a data manager 704, according to an embodiment.

As shown in FIG. 11, data manager 704″ includes a hierarchy scaler 706″.Hierarchy scaler 706″ includes an assigning module 902′, a determinationmodule 904′, and a storing module 908′. Further structural andoperational embodiments will be apparent to persons skilled in therelevant art(s) based on the discussion regarding flowchart 1000.Flowchart 1000 is described as follows.

As shown in FIG. 10, the method of flowchart 1000 begins at step 802. Instep 802, a plurality of hierarchical scale unit values are assigned toa plurality of respective nodes of a distributed store. In an exampleimplementation, assigning module 902′ assigns the plurality ofhierarchical scale unit values to the plurality of respective nodes.

At step 808, a primary instance of a data module with respect to a dataoperation is stored in a first node of the plurality of nodes. A primaryinstance of a data module with respect to a data operation is aninstance of the data module at which the data operation with respect tothe data module is initially directed or at which the data operationwith respect to the data module is initiated. The first node has a firsthierarchical scale unit value of the plurality of hierarchical scaleunit values. In an example implementation, storing module 908′ storesthe primary instance of the data module with respect to the dataoperation in the first node.

At step 1002, a determination is made that a magnitude of a differencebetween the first hierarchical scale unit value and a secondhierarchical scale unit value of a second node of the plurality of nodesexceeds a magnitude of a difference between the first hierarchical scaleunit value and a hierarchical scale unit value of any other node of theplurality of nodes. In an example implementation, determination module904′ determines that the magnitude of the difference between the firsthierarchical scale unit value and the second hierarchical scale unitvalue exceeds the magnitude of the difference between the firsthierarchical scale unit value and the hierarchical scale unit value ofany other node of the plurality of nodes.

At step 1004, a determination is made whether a load of the second nodeexceeds a threshold. In an example implementation, determination module904 determines whether the load of the second node exceeds thethreshold. If the load of the second node does not exceed the threshold,flow continues to step 1006. If the load of the second node exceeds thethreshold, however, flow continues to step 1008.

At step 1006, a second instance of the data module with respect to thedata operation is stored in the second node of the plurality of nodes.In an example implementation, storing module 908 stores the secondinstance of the data module with respect to a data operation in thesecond node.

At step 1008, a second instance of the data module with respect to thedata operation is stored in a third node of the plurality of nodeshaving a third hierarchical scale unit value of the plurality ofhierarchical scale unit values based on a magnitude of a differencebetween the first hierarchical scale unit value and the thirdhierarchical scale unit value. In an example implementation, storingmodule 908 stores the second instance of the data module with respect tothe data operation in the third node.

In some example embodiments, one or more steps 802, 808, 1002, 1004,1006, and/or 1008 of flowchart 1000 may not be performed. Moreover,steps in addition to or in lieu of steps 802, 808, 1002, 1004, 1006,and/or 1008 may be performed.

FIG. 12 depicts an example computer 1200 in which embodiments may beimplemented. Any one or more of the machines 102A-102N shown in FIGS. 1and 7, user systems 702A-702M or data manager 704 shown in FIG. 7, orany one or more subcomponents thereof shown in FIGS. 9 and 11 may beimplemented using computer 1200, including one or more features ofcomputer 1200 and/or alternative features. Computer 1200 may be ageneral-purpose computing device in the form of a conventional personalcomputer, a mobile computer, or a workstation, for example, or computer1200 may be a special purpose computing device. The description ofcomputer 1200 provided herein is provided for purposes of illustration,and is not intended to be limiting. Embodiments may be implemented infurther types of computer systems, as would be known to persons skilledin the relevant art(s).

As shown in FIG. 12, computer 1200 includes a processing unit 1202, asystem memory 1204, and a bus 1206 that couples various systemcomponents including system memory 1204 to processing unit 1202. Bus1206 represents one or more of any of several types of bus structures,including a memory bus or memory controller, a peripheral bus, anaccelerated graphics port, and a processor or local bus using any of avariety of bus architectures. System memory 1204 includes read onlymemory (ROM) 1208 and random access memory (RAM) 1210. A basicinput/output system 1212 (BIOS) is stored in ROM 1208.

Computer 1200 also has one or more of the following drives: a hard diskdrive 1214 for reading from and writing to a hard disk, a magnetic diskdrive 1216 for reading from or writing to a removable magnetic disk1218, and an optical disk drive 1220 for reading from or writing to aremovable optical disk 1222 such as a CD ROM, DVD ROM, or other opticalmedia. Hard disk drive 1214, magnetic disk drive 1216, and optical diskdrive 1220 are connected to bus 1206 by a hard disk drive interface1224, a magnetic disk drive interface 1226, and an optical driveinterface 1228, respectively. The drives and their associatedcomputer-readable storage media provide nonvolatile storage ofcomputer-readable instructions, data structures, program modules andother data for the computer. Although a hard disk, a removable magneticdisk and a removable optical disk are described, other types ofcomputer-readable media can be used to store data, such as flash memorycards, digital video disks, random access memories (RAMs), read onlymemories (ROM), and the like.

A number of program modules may be stored on the hard disk, magneticdisk, optical disk, ROM, or RAM. These programs include an operatingsystem 1230, one or more application programs 1232, other programmodules 1234, and program data 1236. Application programs 1232 orprogram modules 1234 may include, for example, computer program logicfor implementing nodes 104A-104Z, named caches 106A-106B, regions108A-108Y, cache items 110A-110P, cache clients 202A-202B, routinglayers 204A-204C, Put operation 206, Get operation 208, primaryinstances of data modules 210A-210C, secondary instances of data modules302A-302C, replicated instances of data modules 402A-402C, local caches502A-502B, routing layers 504A-504B, hierarchy scaler 706, nodes712A-712N, data modules 714A-714N, application(s) 716A-716N, assigningmodule 902, determination module 904, weight module 906, storing module908, comparing module 910, assigning module 902′, determination module904′, storing module 908′, flowchart 800 (including any step offlowchart 800), and/or flowchart 1000 (including any step of flowchart1000), as described herein.

A user may enter commands and information into the computer 1200 throughinput devices such as keyboard 1238 and pointing device 1240. Otherinput devices (not shown) may include a microphone, joystick, game pad,satellite dish, scanner, or the like. These and other input devices areoften connected to the processing unit 1202 through a serial portinterface 1242 that is coupled to bus 1206, but may be connected byother interfaces, such as a parallel port, game port, or a universalserial bus (USB).

A monitor 1244 or other type of display device is also connected to bus1206 via an interface, such as a video adapter 1246. In addition to themonitor, computer 1200 may include other peripheral output devices (notshown) such as speakers and printers.

Computer 1200 is connected to a network 1248 (e.g., the Internet)through a network interface or adapter 1250, a modem 1252, or othermeans for establishing communications over the network. Modem 1252,which may be internal or external, is connected to bus 1206 via serialport interface 1242.

As used herein, the terms “computer program medium” and“computer-readable medium” are used to generally refer to media such asthe hard disk associated with hard disk drive 1214, removable magneticdisk 1218, removable optical disk 1222, as well as other media such asflash memory cards, digital video disks, random access memories (RAMs),read only memories (ROM), and the like.

As noted above, computer programs and modules (including applicationprograms 1232 and other program modules 1234) may be stored on the harddisk, magnetic disk, optical disk, ROM, or RAM. Such computer programsmay also be received via network interface 1250 or serial port interface1242. Such computer programs, when executed or loaded by an application,enable computer 1200 to implement features of embodiments discussedherein. Accordingly, such computer programs represent controllers of thecomputer 1200.

Embodiments are also directed to computer program products comprisingsoftware (e.g., computer-readable instructions) stored on any computeruseable medium. Such software, when executed in one or more dataprocessing devices, causes a data processing device(s) to operate asdescribed herein. Embodiments may employ any computer-useable orcomputer-readable medium, known now or in the future. Examples ofcomputer-readable mediums include, but are not limited to storagedevices such as RAM, hard drives, floppy disks, CD ROMs, DVD ROMs, zipdisks, tapes, magnetic storage devices, optical storage devices,MEMS-based storage devices, nanotechnology-based storage devices, andthe like.

IV. CONCLUSION

While various embodiments have been described above, it should beunderstood that they have been presented by way of example only, and notlimitation. It will be apparent to persons skilled in the relevantart(s) that various changes in form and details can be made thereinwithout departing from the spirit and scope of the invention. Thus, thebreadth and scope of the present invention should not be limited by anyof the above-described exemplary embodiments, but should be defined onlyin accordance with the following claims and their equivalents.

What is claimed is:
 1. A method, performed by at least one dataprocessor, comprising: accessing information of a first hierarchicalscale unit value associated with a first hierarchical scale unit that isincluded in a plurality of hierarchical scale units and that stores aprimary instance of a data partition, the primary instance of the datapartition including a primary instance of a data module that is storedwith respect to a put operation in accordance with a key value pairassociated with the data module in response to receipt of a put requestthat includes the key value pair, the put request requesting performanceof the put operation; establishing a replicated instance of the datapartition in a second hierarchical scale unit of the plurality ofhierarchical scale units having a second hierarchical scale unit valuebased on a difference between the first hierarchical scale unit valueand the second hierarchical scale unit value and further based on athreshold, each hierarchical scale unit value uniquely corresponding toa respective hierarchical scale unit in a hierarchical infrastructurethat includes the respective hierarchical scale unit, the establishingcomprising: storing a replicated instance of the data module in thesecond hierarchical scale unit with respect to the put operation inaccordance with the key value pair by causing the first hierarchicalscale unit to forward the put request, which includes the key valuepair, to the second hierarchical scale unit; and reading the data modulefrom the first scale unit rather than the second scale unit with respectto a get operation in accordance with a key of the key value pair basedon the data module stored in the first hierarchical scale unit being theprimary instance of the data module.
 2. The method of claim 1, whereinestablishing the replicated instance of the data partition is based onthe difference between the first hierarchical scale unit value and thesecond hierarchical scale unit value exceeding the threshold.
 3. Themethod of claim 1, wherein establishing the replicated instance of thedata partition is based on the difference between the first hierarchicalscale unit value and the second hierarchical scale unit value exceedinga difference between the first hierarchical scale unit value and ahierarchical scale unit value of any other hierarchical scale unit ofthe plurality of hierarchical scale units.
 4. The method of claim 1,further comprising: establishing a secondary third instance of the datapartition in a third hierarchical scale unit of the plurality ofhierarchical scale units having a third hierarchical scale unit valuethat is less than a hierarchical scale unit value of any otherhierarchical scale unit of the plurality of hierarchical scale unitsother than the first and second hierarchical scale units.
 5. The methodof claim 1, further comprising: establishing a third instance of thedata partition in a third hierarchical scale unit of the plurality ofhierarchical scale units having a third hierarchical scale unit valuethat is greater than a hierarchical scale unit value of any otherhierarchical scale unit of the plurality of hierarchical scale unitsother than the first and second hierarchical scale units.
 6. The methodof claim 1, further comprising: establishing a third instance of thedata partition in a third hierarchical scale unit of the plurality ofhierarchical scale units having a third hierarchical scale unit valuethat is approximately half of the sum of the first hierarchical scaleunit value and the second hierarchical scale unit value.
 7. The methodof claim 1, further comprising: establishing a third instance of thedata partition in a third hierarchical scale unit of the plurality ofhierarchical scale units based on a load of the third hierarchical scaleunit, the third hierarchical scale unit having a third hierarchicalscale unit value that is different from the first hierarchical scaleunit value and the second hierarchical scale unit value.
 8. The methodof claim 1, further comprising: determining that a magnitude of adifference between the first hierarchical scale unit value and a thirdhierarchical scale unit value of a third hierarchical scale unit of theplurality of hierarchical scale units exceeds a magnitude of adifference between the first hierarchical scale unit value and ahierarchical scale unit value of any other hierarchical scale unit ofthe plurality of hierarchical scale units; and determining that a loadof the third hierarchical scale unit exceeds a threshold; whereinestablishing the replicated instance of the data partition in the secondhierarchical scale unit of the plurality of hierarchical scale units isperformed in response to determining that the load of the third nodeexceeds the threshold.
 9. The method of claim 1, further comprising:comparing the first hierarchical scale unit value to hierarchical scaleunit values of respective hierarchical scale units of the plurality ofhierarchical scale units; wherein establishing the replicated instanceof the data partition is based on the magnitude of the differencebetween the first hierarchical scale unit value and the secondhierarchical scale unit value exceeding a difference between the firsthierarchical scale unit value and a scale unit value of any otherhierarchical scale unit of the plurality of hierarchical scale unitshaving a load that does not exceed a threshold.
 10. The method of claim1, further comprising: applying a respective weight to each hierarchicalscale unit value; and determining the difference between the firsthierarchical scale unit value and the second hierarchical scale unitvalue in response to applying the respective weight to each hierarchicalscale unit value; wherein establishing the replicated instance of thedata partition is performed in response to determining the differencebetween the first hierarchical scale unit value and the secondhierarchical scale unit value.
 11. The method of claim 10, wherein thehierarchical scale unit values are weighted based on load latencies ofthe respective hierarchical scale units to which the hierarchical scaleunit values are assigned.
 12. The method of claim 10, wherein thehierarchical scale unit values are weighted based on failureprobabilities of the respective hierarchical scale units to which thehierarchical scale unit values are assigned.
 13. The method of claim 1,wherein accessing the information of the first hierarchical scale unitvalue comprises: accessing the information of the first hierarchicalscale unit value associated with the first hierarchical scale unit thatis included in the plurality of hierarchical scale units, which areincluded in a distributed cache.
 14. The method of claim 1, whereinaccessing the information of the first hierarchical scale unit valuecomprises: accessing the information of the first hierarchical scaleunit value associated with the first hierarchical scale unit that isincluded in the plurality of hierarchical scale units, which areincluded in a distributed store that is configured in a cloud of a cloudcomputing environment.
 15. A data manager comprising: one or moreprocessors; a determination module configured to access information of afirst hierarchical scale unit value associated with a first hierarchicalscale unit that is included in a plurality of hierarchical scale unitsand that stores a primary instance of a data partition, the primaryinstance of the data partition including a primary instance of a datamodule that is stored with respect to a put operation in accordance witha key value pair associated with the data module in response to receiptof a put request that includes the key value pair, the put requestrequesting performance of the put operation; and a storing module,implemented at least in part in at least one of the one or moreprocessors, configured to establish a replicated instance of the datapartition in a second hierarchical scale unit of the plurality ofhierarchical scale units having a second hierarchical scale unit valuebased on a difference between the first hierarchical scale unit valueand the second hierarchical scale unit value and further based on athreshold, each hierarchical scale unit value uniquely corresponding toa respective hierarchical scale unit in a hierarchical infrastructurethat includes the respective hierarchical scale unit, the storing moduleconfigured to store a replicated instance of the data module in thesecond hierarchical scale unit with respect to the put operation inaccordance with the key value pair by causing the first hierarchicalscale unit to forward the put request, which includes the key valuepair, to the second hierarchical scale unit, the storing module furtherconfigured to read the data module from the first scale unit rather thanthe second scale unit with respect to a get operation in accordance witha key of the key value pair based on the data module stored in the firsthierarchical scale unit being the primary instance of the data module.16. The data manager of claim 15, wherein the storing module isconfigured to establish the replicated instance of the data partitionbased on the difference between the first hierarchical scale unit valueand the second hierarchical scale unit value exceeding the threshold.17. The data manager of claim 15, wherein the storing module isconfigured to establish the replicated instance of the data partitionfurther based on a load of the second node.
 18. The data manager ofclaim 15, further comprising: a weight module configured to apply arespective weight to each hierarchical scale unit value; and adetermination module configured to determine the difference between thefirst hierarchical scale unit value and the second hierarchical scaleunit value in response to application of the respective weight to eachhierarchical scale unit value; wherein the storing module is configuredto establish the replicated instance of the data partition in the secondhierarchical scale unit in response to determination of the differencebetween the first hierarchical scale unit value and the secondhierarchical scale unit value.
 19. A computer program product comprisinga computer-readable storage device having computer program logicrecorded thereon for enabling a processor-based system to storeinstances of a data partition among hierarchical scale units of adistributed store, the computer program product comprising: a firstprogram logic module for enabling the processor-based system to accessinformation of a first hierarchical weighted scale unit value associatedwith a first hierarchical scale unit that is included in a plurality ofhierarchical scale units and that stores a primary instance of a datapartition, the primary instance of the data partition including aprimary instance of a data module that is stored with respect to a putoperation in accordance with a key value pair associated with the datamodule in response to receipt of a put request that includes the keyvalue pair, the put request requesting performance of the put operation;a second program logic module for enabling the processor-based system toestablish a replicated instance of the data partition in a secondhierarchical scale unit of the plurality of hierarchical scale unitshaving a second hierarchical weighted scale unit value based on adifference between the first hierarchical weighted scale unit value andthe second hierarchical weighted scale unit value and further based on athreshold, each hierarchical weighted scale unit value uniquelycorresponding to a respective hierarchical scale unit in a hierarchicalinfrastructure that includes the respective hierarchical scale unit, thesecond program logic module including logic for enabling theprocessor-based system to store a replicated instance of the data modulein the second hierarchical scale unit with respect to the put operationin accordance with the key value pair by causing the first hierarchicalscale unit to forward the put request, which includes the key valuepair, to the second hierarchical scale unit; and a third program logicmodule for enabling the processor-based system to read the data modulefrom the first scale unit rather than the second scale unit with respectto a get operation in accordance with a key of the key value pair basedon the data module stored in the first hierarchical scale unit being theprimary instance of the data module.
 20. The computer program product ofclaim 19, wherein the second program logic module includes logic forenabling the processor-based system to store the replicated instance ofthe data partition based on the difference between the firsthierarchical weighted scale unit value and the second hierarchicalweighted scale unit value exceeding the threshold.